package com.pangu.bean;

/**
 * 对结果的封装，因为信息总共是分多个部分<br>
 * 包含分页信息
 * <p/>
 * Created by cxlin
 */
public class PageableResult {

    // 实际的数据
    private Object content;
    // 页面信息
    private PageInfo pageInfo;

    public PageableResult(Object content, PageInfo pageInfo) {
        super();
        this.content = content;
        this.pageInfo = pageInfo;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public PageInfo getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }

    @Override
    public String toString() {
        return "PageableResult{" +
                "content=" + content +
                ", pageInfo=" + pageInfo +
                '}';
    }
}
